home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8"?>
- <!-- ===========================================================
- Category: XSLT
- Sub-category: xsl:copy-of
- Author: David Silverlight
- HeadGeek@xmlpitstop.com
- Created: 2001-05-16
- Description:-
- This stylesheet processes a set of XML elements and displays
- the result in XML. An XPath statement can be applied to the
- select to copy selected elements to the result tree. In
- this example, we are outputting only the elements that
- contain employee elements whose department
- element = "Internet"
- ================================================================ -->
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
- <xsl:output method="xml"/>
-
-
-
- <!-- Template for root rule -->
- <xsl:template match="/">
-
- <!--This stylesheet processes a set of XML elements and
- displays the result in XML. An XPath statement can be applied to the
- select to copy selected elements to the result tree. In this example, we are
- outputting only the elements that contain employee elements whose department
- element = "Internet" -->
-
- <employees>
- <xsl:copy-of select="employees/employee[department='Internet']" />
- </employees>
-
-
- </xsl:template>
-
-
-
- </xsl:stylesheet>